package com.lianxi.Courses.service;

import com.github.pagehelper.PageInfo;
import com.lianxi.Courses.entity.User;
import com.lianxi.Courses.exception.*;


/**
 * 翔哥
 * 2025年10月11日
 */
public interface UserService {
    void register(User user) throws RequestParameterErrorException, UserErrorExcetion, MD5ErrorException;

    User login(String loginName, String password,String code, String image) throws CodeErrorException, UserErrorExcetion, MD5ErrorException, RequestParameterErrorException, UserAdminErrorExcetion;

    PageInfo<User> findByParams(User userParam,String pageNo, String pageSize);

    User findById(String id) throws UserErrorExcetion, RequestParameterErrorException;

    void updateUser(String id ,String nickname ,String role,String password,String email) throws RequestParameterErrorException, UserErrorExcetion;

    void updateStatus(String id) throws RequestParameterErrorException;


    void frontRegister(User user, String confirmPassword) throws RequestParameterErrorException, UserErrorExcetion, MD5ErrorException;
    User frontLogin(String loginName, String password) throws UserErrorExcetion, MD5ErrorException, RequestParameterErrorException;
    void UserInformationUpdate(String id, String oldPassword, String newPassword, String confirmPassword, String nickname, String email) throws RequestParameterErrorException, UserErrorExcetion, MD5ErrorException;
    void signIn(String userId) throws RequestParameterErrorException, UserErrorExcetion;
}





